package com.mrzhang.glpt.server.test;

import com.mrzhang.common.annotation.EnableGlptAuthExceptionHandler;
import com.mrzhang.common.annotation.EnableGlptOauth2FeignClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@EnableDiscoveryClient
@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)
@EnableGlptAuthExceptionHandler//构造自定义异常处理 自动注入Bean
@EnableFeignClients
@EnableGlptOauth2FeignClient
public class GlptServerTestApplication {

    public static void main(String[] args) {
        SpringApplication.run(GlptServerTestApplication.class, args);
    }

}
